package demo;

import java.util.ArrayList;

public class Demo03 {
    byte[] array=new byte[1*1024*1024];

    public static void main(String[] args) {
        ArrayList<Demo03> objects = new ArrayList<>();
        int count=0;
        try {
            while (true) {
                objects.add(new Demo03());
                count = count + 1;
            }
        } catch (Error e) {
//            e.printStackTrace();
            System.out.println("count:" + count);
            e.printStackTrace();
        }



    }
}
